<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true&amp;language=<?php echo $_SESSION["language"]; ?>"></script>
<script type="text/javascript" src="/javascript/jquery-gmaps-1.0.0.min.js"></script>
<?php echo $this->fetch("page/".$_SESSION["language"]."/kontakt"); ?>

<form action="/admin/kontakt" method="post">
	<h1><?php __("Kontaktirajte nas"); ?></h1>
	<label for="name"><?php __("Ime"); ?>:</label>
	<input type="text" name="name" id="name" value="<?php echo $data["name"]; ?>" />
	
	<label for="email"><?php __("E-mail"); ?>:</label>
	<input type="text" name="email" id="email" value="<?php echo $data["email"]; ?>" />
	
	<label for="message"><?php __("Poruka"); ?>:</label>
	<textarea class="contact" rows="5" cols="30" name="message" id="message"><?php echo $data["message"]; ?></textarea>

	<label for="captcha"><?php __("Text sa slike"); ?>:</label>
	<input type="text" class="captcha" name="captcha" value="<?php echo $data["captcha"]; ?>" />
	<img class="captcha" src="/admin/kontakt_captcha" />
	
	<br clear="all" />
	<input type="submit" class="btn right" value="<?php __("Pošalji"); ?>" />
	<?php if($status_message): ?>
	<div class="flash-message right <?php echo $status_code?>" style="text-align:center;max-width:200px"><?php echo $status_message; ?></div>
	<?php endif; ?>
</form>

<div class="left">
	<h1><?php __("Gde se nalazimo"); ?>?</h1>
	<div id="mapa"></div>
</div>

<script type="text/javascript">
var str_Get_Directions	= "<?php __("Kako doći do nas"); ?>?";
var str_Directions		= "<?php __("Detaljna ruta"); ?>";
var str_Search 			= "<?php __("Pretraga"); ?>";
var str_Your_Address	= "<?php __("Vaša adresa"); ?>";
var str_Searching		= "<?php __("Pretraga"); ?>";
var str_Search_Results	= "<?php __("Rezultati pretrage"); ?>";
var str_Empty			= "<?php __("Prazno"); ?>";
var str_Reset			= "<?php __("Poništi"); ?>";
$(function(){
	$("#mapa").GMap({
		position: {lat: 44.783838, lng: 20.515835},
		size: {width:300, height: 800},
		zoom: 15,
		language: '<?php echo $_SESSION["language"]; ?>',
		sidebarFloat: 'left'
	});
});
</script>